package com.hou.dao;

import com.hou.pojo.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.Mapping;

/**
 * @author shkstart
 * @create 2021-09-06-21:20
 */
@Mapper
public interface StockDao {

    //根据id查询库存信息方法
    Stock checkStock(Integer id);
    //扣除库存
    int updateSale(Stock stock);
}
